package com.hyt.it.ogt.ykcj.domain.zs.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.hyt.it.ogt.ykcj.common.annotation.zs.TemplateMapper;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @program: it-ogt-ykcj
 * @description: 证书编码模板
 * @author: Yang HuanKun
 * @create: 2022-06-23 15:29
 **/
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "证书编码模板VO", description = "证书编码模板VO")
public class CertificateCodeTemplateVO {

    @ExcelProperty("姓名")
    @TemplateMapper(templateCode = "NAME")
    private String name;

    @TemplateMapper(templateCode = "ID_NO")
    @ExcelProperty("证件号码")
    private String idNo;

    @TemplateMapper(templateCode = "CERTIFICATE_NO")
    @ExcelProperty("证书编码")
    private String certificateNo;

    @DateTimeFormat("yyyy/MM/dd")
    @TemplateMapper(templateCode = "ISSUE_DATE")
    @ExcelProperty("发证日期")
    private Date issuedDate;
}
